import cv2
img = cv2.imread("./lena.jpg")
cv2.imshow("lena", img)

#HSV空间
hsv = cv2.cvtColor(img,cv2.COLOR_BGR2HSV)
cv2.imshow("HSV",hsv)


#lab空间
lab = cv2.cvtColor(img, cv2.COLOR_BGR2LAB)
cv2.imshow("L*a*b*", lab)

cv2.waitKey(0)
cv2.destroyAllWindows()